package com.itheima.easyexceldemo.mapper;

import com.itheima.easyexceldemo.pojo.OperationLog;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

/**
 * TODO
 *
 * @Author mr.luo
 * @Date 13 4月 2025 10:29
 */
@Mapper
public interface LogMapper {

    /**
     * 插入操作日志
     * @param operationLog
     */
    @Insert("insert into operate_log(operate_emp_id, operate_time, class_name, method_name, method_params, return_value, cost_time) " +
            "values(#{operateEmpId},#{operateTime},#{className},#{methodName},#{methodParams},#{returnValue},#{costTime})")
    void insert(OperationLog operationLog);
}
